package com.ocm.tourism.core.service;

import com.ocm.tourism.core.domain.Participant;
import com.ocm.tourism.core.model.SearchCriteria;

import java.util.List;

import org.springframework.security.core.userdetails.UserDetailsService;

public interface ParticipantService extends UserDetailsService {

   public long countAllParticipants();

   public void deleteParticipant(Participant participant);

   public Participant findParticipant(Long id);

   public boolean hasParticipant(String username);

   public List<Participant> findParticipants(int firstResult, int maxResults);

   public void saveParticipant(Participant participant);

   List<Participant> findParticipants(SearchCriteria participantCriteria, int firstResult, int maxResults);

}
